/*
 * util.cpp
 *
 *  Created on: 08.06.2014
 *      Author: Zejing Li
 */

#include "util/util.h"
#include <string>

using namespace std;

string a::Util::replaceAll(std::string s, std::string a, std::string b) {
	for (int i = 0; i < s.size(); i++) {
		if (s.substr(i, 1) == a) {
			s.replace(i, 1, b);
		}
	}
	return s;
}

